﻿using Webshop20.Usecases.States.Registration;
using Web.App.Infrastructure.ApplicationMessages.Contracts;

namespace Webshop20.Usecases.States
{
    public interface IUseCaseStateContext
    {
        void ChangeState(IRegistrationState newState);
        object GetSessionObject(string key);
        object GetSessionObject(int index);
        void SetSessionObject(string key, object value);
        void SetSessionObject(int index, object value);
        void AddErrorMessagesToViewDataModelState(IDomainMessage systemMessage);
    }
}